<?php

use App\Http\Controllers\AuthController;
use App\Http\Controllers\MintController;
use App\Http\Controllers\NftsController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/

Route::get('register-info', [AuthController::class, 'registerInfo']);
Route::post('login', [AuthController::class, 'login']);
Route::post('register', [AuthController::class, 'register']);
Route::get('user', [AuthController::class, 'user'])->middleware('auth:sanctum');
Route::post('doge-address', [AuthController::class, 'setDogeAddress'])->middleware('auth:sanctum');
Route::get('nft_list', [NftsController::class, 'index'])->middleware('auth:sanctum');
Route::get('nft-detail', [NftsController::class, 'detail'])->middleware('auth:sanctum');
Route::get('mints', [MintController::class, 'index'])->middleware('auth:sanctum');
